home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / satellit / vstsrc / libxtrns.h < prev    next >
C/C++ Source or Header  |  1995-01-23  |  7KB  |  136 lines

  1. #ifndef _LIBEXTRNS_H
  2. #define _LIBEXTRNS_H
  3. /*
  4.  * %W% %E% %U%  [EXTREL_1.2]
  5.  *
  6.  * VersaTrack orbit calculations are based on those that appear in Dr. Manfred
  7.  * Bester's sattrack program (the Unix(tm) versions 1 and 2).
  8.  *
  9.  * The data from which the maps where generated come from "xsat", an
  10.  * X-Windows program by David A. Curry (N9MSW).
  11.  *
  12.  * Site coordinates come from various sources, including a couple of
  13.  * World Almanacs, and also from both of the programs mentioned above.
  14.  *
  15.  * The following are authors' applicable copyright notices:
  16.  *
  17.  *                                                                               
  18.  * Copyright (c) 1992, 1993, 1994 Manfred Bester. All Rights Reserved.        
  19.  *                                                                           
  20.  * Permission to use, copy, modify, and distribute this software and its      
  21.  * documentation for educational, research and non-profit purposes, without   
  22.  * fee, and without a written agreement is hereby granted, provided that the  
  23.  * above copyright notice and the following three paragraphs appear in all    
  24.  * copies.                                                                    
  25.  *                                                                              
  26.  * Permission to incorporate this software into commercial products may be    
  27.  * obtained from the author, Dr. Manfred Bester, 1636 M. L. King Jr. Way,     
  28.  * Berkeley, CA 94709, USA.                                                   
  29.  *                                                                             
  30.  * IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,  
  31.  * SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF    
  32.  * THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED   
  33.  * OF THE POSSIBILITY OF SUCH DAMAGE.                                         
  34.  *                                                                             
  35.  * THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT       
  36.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A    
  37.  * PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"       
  38.  * BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,  
  39.  * UPDATES, ENHANCEMENTS, OR MODIFICATIONS.                                   
  40.  *                                                                             
  41.  *                                                                             
  42.  * Copyright 1992 by David A. Curry                                            
  43.  *                                                                             
  44.  * Permission to use, copy, modify, distribute, and sell this software and its 
  45.  * documentation for any purpose is hereby granted without fee, provided that  
  46.  * the above copyright notice appear in all copies and that both that copyright
  47.  * notice and this permission notice appear in supporting documentation.  The  
  48.  * author makes no representations about the suitability of this software for  
  49.  * any purpose.  It is provided "as is" without express or implied warranty.   
  50.  *                                                                             
  51.  * David A. Curry, N9MSW                                                       
  52.  * Purdue University                                                           
  53.  * Engineering Computer Network                                                
  54.  * 1285 Electrical Engineering Building                                        
  55.  * West Lafayette, IN 47907                                                    
  56.  * davy@ecn.purdue.edu                                                         
  57.  *                                                                             
  58.  * VersaTrack Copyright (c) 1993, 1994 Siamack Navabpour. All Rights Reserved.
  59.  *
  60.  * Permission is hereby granted to copy, modify and distribute VersaTrack
  61.  * in whole, or in part, for educational, non-profit and non-commercial use
  62.  * only, free of charge or obligation, and without agreement, provided that
  63.  * all copyrights and restrictions noted herein are observed and followed, and
  64.  * additionally, that this and all other copyright notices listed herein
  65.  * appear unaltered in all copies and in all derived work.
  66.  *
  67.  * This notice shall not in any way void or supersede any of the other authors
  68.  * rights or privileges.
  69.  *
  70.  * VersaTrack IS PRESENTED FREE AND "AS IS", WITHOUT ANY WARRANTY OR SUPPORT.
  71.  * YOU USE IT AT YOUR OWN RISK. The author(s) shall not be liable for any
  72.  * direct, indirect, incidental, or consequential damage, loss of profits or
  73.  * other tangible or intangible losses or benefits, arising out of or related
  74.  * to its use. VersaTrack carries no warranty, explicit or implied, including
  75.  * but not limited to those of merchantablity and fitness for a particular
  76.  * purpose.
  77.  *
  78.  * Siamack Navabpour, 12342 Hunter's Chase Dr. Apt. 2114, Austin, TX 78729.
  79.  * sia@bga.com or sia@realtime.com.
  80.  */
  81.  
  82.  
  83. #include <stdio.h>
  84. #include <string.h>
  85. #ifdef _DEBUG_
  86. #include <stdarg.h>
  87. #endif /* _DEBUG_ */
  88.  
  89. extern void fatal (HWND, char *);
  90. extern BOOL yesno (HWND, char *);
  91. extern void usermsg (HWND, char *);
  92. extern POINT *DialogPos (HWND);
  93. extern BOOL GetEditText(HWND, int, char *, int);
  94. #ifdef _DEBUG_
  95. extern void (*diag)(va_list,...);
  96. extern void DebugFunc(va_list,...);
  97. extern void ConsClose(void);
  98. extern void _vst_assert_(BOOL, char *, char *,  int);
  99. #else  /* _DEBUG_ */
  100. extern void diag(void);
  101. #endif /* _DEBUG_ */
  102.  
  103. extern char *getline (char *, int, FILE *);
  104. extern BOOL readSatmodeDB (int, HWND, satellite_t **, char *, char *, char *);
  105. extern void stripTrailingSpace (char *);
  106. extern char *stripLeadingSpace (char *);
  107. extern char *saveString (char *);
  108. extern void *safeAlloc (int);
  109. extern void safeFree (void *);
  110. extern int  cistrcmp (char *, char *);
  111. extern double getElement (char *, int, int);
  112. extern satellite_t **readSatDB (int, char *, char *, char *);
  113. extern satellite_t *findSatbyName (satellite_t **, char *);
  114. extern satellite_t *findSatbyID (int);
  115. static int satCompare (const void *, const void *);
  116.  
  117. extern site_t **readSiteDB (int, char *, char *, unsigned char *, char *);
  118. extern site_t *findSitebyName (char *);
  119. extern site_t *findSitebyID (int);
  120.  
  121. extern double utctime (void);
  122. extern long day_number (int, int ,int);
  123. extern void daytodate (long, int *, int *, int *, int *);
  124. extern void UTCdateStr (double, char *);
  125. extern char *monthname (int);
  126. extern double internalTime (int, int, int, int, int, int);
  127. extern void timetodhms (double , int *, int *, int *, int *);
  128. extern void calendar (int, int, int *, int *);
  129.  
  130. extern COLORREF BColors[];
  131. extern HBRUSH hBDrawBrush[];
  132. extern char textbuf[BUFLEN], tmpbuf[BUFLEN], textbuf[BUFLEN];
  133. extern HINSTANCE hInstDLL;
  134.  
  135. #endif /* _LIBEXTRNS_H */
  136.